package problems;

import java.util.concurrent.Semaphore;

public class BenchmarkSemaphore {
	private Semaphore semaphore;
	
	public BenchmarkSemaphore(int initialCount) {
		semaphore = new Semaphore(initialCount);
	}
	
    public void release()
    {
        semaphore.release();
    }

    public void release(int count)
    {
        semaphore.release(count);
    }

    public void waitOne()
    {
        semaphore.acquireUninterruptibly();
    }
}